package com.wisdom.client.boot;

import com.wisdom.client.runner.RpcClientRunner;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @description: <rpc client start>
 * @author: Leo
 * @date:2021-08-22 16:02
 */
@Configuration
@Slf4j
public class RpcClientStart {

    @Autowired
    private RpcClientRunner rpcClientRunner;

    @PostConstruct
    public void start(){
        /*
            从Nacos 发现服务 并订阅 ,
            将发现的服务缓存

         */
        rpcClientRunner.run();

    }

}
